package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 商家分店应用信息
 * </p>
 *
 * @author chenxuebin
 * @since 2018-09-05
 */
@TableName("t_merchant_app")
public class MerchantApp extends Model<MerchantApp> {

	private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	/**
	 * 应用名&
	 */
	private String name;
	/**
	 * 商家分店ID#商家分店ID，见t_store，先建立分店应用，再建分店实体信息；应用必须有，分店可有可无
	 */
	private Long sid;

	/**
	 * 关联商家应用
	 */
	private Long asmpid;

	/**
	 * 分店支付商户ID#分店支付商户ID，一般等同总店商家ID，除非分店独立支付
	 */
	private String mchid;

	private String mcode;
	private String mpcode;
	private String jiancode;
	private String token;

	/**
	 * 应用平台类型@1：微信公众号；2：微信小程序；3：微信授权APP；4：支付宝小程序；5：百度小程序；6：头条小程序；7：新浪微博
	 */
	@TableField("app_type")
	private Integer appType;

	/**
	 * 支付平台@1：微信平台；2：支付宝平台；3：百度支付&
	 */
	@TableField("pay_type")
	private Integer payType;

	@TableField(exist = false)
	private Long mainmpid;

	private Long aspaympid;

	private Integer iskefumsg;
//	公众号图
	private String gzhimg;
	private String kefuimg;

	/**
	 * 应用logo
	 */
	private String pic;
	/**
	 * 应用id&
	 */
	private String appid;
	/**
	 * 应用密钥&
	 */
	private String appsecret;
	/**
	 * 加密key
	 */
	private String aeskey;

	/**
	 * 加密向量
	 */
	private String aesiv;

	/**
	 * 支付密钥
	 */
	private String paykey;
	private String phone;

	private String kefuzj;
	private String kefu1;
	private String kefu2;

	private Integer smsappid;
	private String smsappkey;

	private Integer iscdn;

	/**
	 * 启用状态&
	 */
	private Integer state;

	/**
	 * 是否总店&
	 */
	@TableField("is_master")
	private Integer isMaster;

	/**
	 * 是否总店&
	 */
	@TableField("version_type")
	private Integer version;

	@TableField(exist = false)
	private Long subsid;

	/**
	 * 总店商家ID&
	 */
	private Long mid;
	private Long uid;
	private Date createtime;
	private Date modifytime;
	private Long modifier;

	/**
	 * 服务商商户号
	 */
	private String servmchid;
	/**
	 * 服务商appid
	 */
	private String servappid;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public String getMchid() {
		return mchid;
	}

	public void setMchid(String mchid) {
		this.mchid = mchid;
	}

	public String getMpcode() {
		return mpcode;
	}

	public void setMpcode(String mpcode) {
		this.mpcode = mpcode;
	}

	public Integer getAppType() {
		return appType;
	}

	public void setAppType(Integer appType) {
		this.appType = appType;
	}


	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getAppsecret() {
		return appsecret;
	}

	public void setAppsecret(String appsecret) {
		this.appsecret = appsecret;
	}

	public String getAeskey() {
		return aeskey;
	}

	public void setAeskey(String aeskey) {
		this.aeskey = aeskey;
	}

	public String getAesiv() {
		return aesiv;
	}

	public void setAesiv(String aesiv) {
		this.aesiv = aesiv;
	}

	public String getPaykey() {
		return paykey;
	}

	public void setPaykey(String paykey) {
		this.paykey = paykey;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public Integer getIsMaster() {
		return isMaster;
	}

	public void setIsMaster(Integer isMaster) {
		this.isMaster = isMaster;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getMcode() {
		return mcode;
	}

	public void setMcode(String mcode) {
		this.mcode = mcode;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Long getSubsid() {
		return subsid;
	}

	public void setSubsid(Long subsid) {
		this.subsid = subsid;
	}

	public Long getAsmpid() {
		return asmpid;
	}

	public void setAsmpid(Long asmpid) {
		this.asmpid = asmpid;
	}

	public Long getMainmpid() {
		return mainmpid;
	}

	public void setMainmpid(Long mainmpid) {
		this.mainmpid = mainmpid;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getKefu1() {
		return kefu1;
	}

	public void setKefu1(String kefu1) {
		this.kefu1 = kefu1;
	}

	public String getKefu2() {
		return kefu2;
	}

	public void setKefu2(String kefu2) {
		this.kefu2 = kefu2;
	}

	public Integer getSmsappid() {
		return smsappid;
	}

	public void setSmsappid(Integer smsappid) {
		this.smsappid = smsappid;
	}

	public String getSmsappkey() {
		return smsappkey;
	}

	public void setSmsappkey(String smsappkey) {
		this.smsappkey = smsappkey;
	}

	public String getKefuzj() {
		return kefuzj;
	}

	public void setKefuzj(String kefuzj) {
		this.kefuzj = kefuzj;
	}

	public Long getAspaympid() {
		return aspaympid;
	}

	public void setAspaympid(Long aspaympid) {
		this.aspaympid = aspaympid;
	}

	public Integer getIscdn() {
		return iscdn;
	}

	public void setIscdn(Integer iscdn) {
		this.iscdn = iscdn;
	}

	public String getJiancode() {
		return jiancode;
	}

	public void setJiancode(String jiancode) {
		this.jiancode = jiancode;
	}

	public Integer getIskefumsg() {
		return iskefumsg;
	}

	public void setIskefumsg(Integer iskefumsg) {
		this.iskefumsg = iskefumsg;
	}

	public String getGzhimg() {
		return gzhimg;
	}

	public void setGzhimg(String gzhimg) {
		this.gzhimg = gzhimg;
	}

	public String getKefuimg() {
		return kefuimg;
	}

	public void setKefuimg(String kefuimg) {
		this.kefuimg = kefuimg;
	}

	public String getServmchid() {
		return servmchid;
	}

	public void setServmchid(String servmchid) {
		this.servmchid = servmchid;
	}

	public String getServappid() {
		return servappid;
	}

	public void setServappid(String servappid) {
		this.servappid = servappid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "MerchantApp{" +
				"id=" + id +
				", name='" + name + '\'' +
				", sid=" + sid +
				", asmpid=" + asmpid +
				", mchid='" + mchid + '\'' +
				", mcode='" + mcode + '\'' +
				", mpcode='" + mpcode + '\'' +
				", jiancode='" + jiancode + '\'' +
				", token='" + token + '\'' +
				", appType=" + appType +
				", payType=" + payType +
				", mainmpid=" + mainmpid +
				", aspaympid=" + aspaympid +
				", iskefumsg=" + iskefumsg +
				", gzhimg='" + gzhimg + '\'' +
				", kefuimg='" + kefuimg + '\'' +
				", pic='" + pic + '\'' +
				", appid='" + appid + '\'' +
				", appsecret='" + appsecret + '\'' +
				", aeskey='" + aeskey + '\'' +
				", aesiv='" + aesiv + '\'' +
				", paykey='" + paykey + '\'' +
				", phone='" + phone + '\'' +
				", kefuzj='" + kefuzj + '\'' +
				", kefu1='" + kefu1 + '\'' +
				", kefu2='" + kefu2 + '\'' +
				", smsappid=" + smsappid +
				", smsappkey='" + smsappkey + '\'' +
				", iscdn=" + iscdn +
				", state=" + state +
				", isMaster=" + isMaster +
				", version=" + version +
				", subsid=" + subsid +
				", mid=" + mid +
				", uid=" + uid +
				", createtime=" + createtime +
				", modifytime=" + modifytime +
				", modifier=" + modifier +
				", servmchid='" + servmchid + '\'' +
				", servappid='" + servappid + '\'' +
				'}';
	}
}
